package org.shop.pro.serviceImpl;

import java.util.List;

import org.shop.pro.entity.Address;
import org.shop.pro.mapper.AddressMapper;
import org.shop.pro.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class AddressServiceImpl implements AddressService {
@Autowired
AddressMapper address;
	
	public List<Address> selectByPrimaryKey(Integer id) {
	
		return  address.selectByPrimaryKey(id);
	}

	@Override
	public int insert(Address record) {
		// TODO Auto-generated method stub
		return address.insert(record);
	}

	@Override
	public Address selectlist(Integer id) {
		// TODO Auto-generated method stub
		return address.selectlist(id);
	}

	@Override
	public int updateByPrimaryKey(Address record) {
		// TODO Auto-generated method stub
		return address.updateByPrimaryKey(record);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return address.deleteByPrimaryKey(id);
	}
}
